<?php die;?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><!--{$title}--></title>
<style type="text/css">
<!--
html {overflow-x:auto; overflow-y:hidden;}
-->
</style>
<link href="css/default.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {
	font-size: 16px;
	font-weight: bold;
	color: #0000CC;
}
.STYLE6 {font-size: 14}
.STYLE7 {
	font-size: 14px;
	font-weight: bold;
}
.STYLE8 {color: #0000CC}
td.bottomline {
	border-bottom: 1px solid #e9e9e9;
}
-->
</style>
</head>

<body>
<table width="100%" height="45" border="0" align="center" cellpadding="0" cellspacing="0" background="imgs/top-banner.gif">
  <tr>
	<td width="280" rowspan="2"><img src="imgs/logo.gif" width="212" height="45" border="0" alt="logo"/></td>
	<td width="630" height="23">&nbsp;</td>
	<td width="110" rowspan="2">&nbsp;</td>
  </tr>
  <tr>
	<td width="280">&nbsp;</td>
	<td width="630" height="22"><table width="500" height="22" border="0" cellpadding="0" cellspacing="0">
	  <tr>
		<td><div id="history"></div></td>
	  </tr>
	</table></td>
  </tr>
</table>
<br>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="120" align="center" valign="top"><table width="120" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
      <tr>
        <td height="28" bgcolor="#F9F9F9"><span class="STYLE1">&nbsp;安装步骤</span></td>
      </tr>
      <tr>
        <td height="28" bgcolor="#FFFFFF"><span class="STYLE6">&nbsp;&nbsp;1、许可协议</span></td>
      </tr>
      <tr>
        <td height="28" bgcolor="#FFFFFF"><span class="STYLE6">&nbsp;&nbsp;<span class="STYLE8">2、环境检测</span></span></td>
      </tr>
      <tr>
        <td height="28" bgcolor="#FFFFFF"><span class="STYLE6">&nbsp;&nbsp;3、参数配置</span></td>
      </tr>
      <tr>
        <td height="28" bgcolor="#FFFFFF"><span class="STYLE6">&nbsp;&nbsp;4、正在安装</span></td>
      </tr>
      <tr>
        <td height="28" bgcolor="#FFFFFF"><span class="STYLE6">&nbsp;&nbsp;5、安装完成</span></td>
      </tr>
    </table></td>
    <td width="860" align="center" valign="top"><table width="850" border="0" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
	<form name="form1" id="form1" method="POST" action="<!--{$smarty.const.MICE_URL}-->install.php/set">
      <tr>
        <td height="28" bgcolor="#F9F9F9">&nbsp;<span class="STYLE7">服务器信息</span></td>
      </tr>
      <tr>
        <td height="28" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="28" class="bottomline">&nbsp;服务器域名</td>
    <td height="28" class="bottomline">&nbsp;<!--{php}-->echo $_SERVER["SERVER_ADDR"];<!--{/php}--></td>
  </tr>
  <tr>
    <td height="28" class="bottomline">&nbsp;服务器操作系统</td>
    <td height="28" class="bottomline">&nbsp;<!--{php}-->echo PHP_OS;<!--{/php}--></td>
  </tr>
  <tr>
    <td height="28" class="bottomline">&nbsp;服务器解释引擎</td>
    <td height="28" class="bottomline">&nbsp;<!--{php}-->echo $_SERVER['SERVER_SOFTWARE']<!--{/php}--></td>
  </tr>
  <tr>
    <td height="28" class="bottomline">&nbsp;服务器时间</td>
    <td height="28" class="bottomline">&nbsp;<!--{php}-->echo Date('Y-m-d H:i:s');<!--{/php}--></td>
  </tr>
  <tr>
    <td height="28" class="bottomline">&nbsp;系统安装目录</td>
    <td height="28" class="bottomline">&nbsp;<!--{$smarty.const.MICE_DIR}--></td>
  </tr>
</table>
</td>
      </tr>
    </table>
      <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
	  <table width="850" border="0" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">  
  <tr>
    <td height="28" bgcolor="#F9F9F9">&nbsp;<span class="STYLE7">PHP 配置检查</span></td>
  </tr>
  <tr>
    <td height="28" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="28" class="bottomline">&nbsp;PHP版本</td>
        <td width="65%" height="28"" class="bottomline"><strong style="color:<!--{php}--> if (strnatcmp(phpversion(), 5.1)>=0) echo 'green'; else echo 'red'; <!--{/php}-->"> PHP v<!--{php}--> echo phpversion(); <!--{/php}--></strong>(PHP版本要求 >= v5.1.0)</td>
	  </tr>
      <tr>
        <td height="28" class="bottomline">&nbsp;safe_mode</td>
        <td height="28" class="bottomline"><!--{php}-->echo ini_get('safe_mode')?'<strong style="color:gray">On</strong>(建议关闭php.ini中的safe_mode)':'<strong style="color:green">Off</strong>(推荐)';<!--{/php}--></td>
      </tr>
      <tr>
        <td height="28" class="bottomline">&nbsp;file_uploads</td>
        <td height="28" class="bottomline"><!--{php}-->echo ini_get('file_uploads')?'<strong style="color:green">On</strong>(可以上传文件)':'<strong style="color:gray">Off</strong>(无法上传文件)';<!--{/php}--></td>
      </tr>
      <tr>
        <td height="28" class="bottomline">&nbsp;GD库</td>
        <td height="28" class="bottomline"><!--{php}-->if(function_exists('imagecreate'))	echo "<strong style='color:green'>On</strong>(可以开启图片验证码功能)";	else	echo "<strong style='color:gray'>Off</strong>(不能开启图片验证码功能,请和服务器管理员联系)";<!--{/php}--></td>
      </tr>
      <tr>
        <td height="28" class="bottomline">&nbsp;magic_quotes_gpc</td>
        <td height="28" class="bottomline"><!--{php}-->echo ini_get('magic_quotes_gpc')?'<strong style="color:gray">On</strong>(miceCMS不需要这个薄弱的安全机制,它可能会影响其他工作
)':'<strong style="color:green">Off</strong>(推荐)';<!--{/php}--></td>
      </tr>
      <tr>
        <td height="28" class="bottomline">&nbsp;magic_quotes_runtime</td>
        <td height="28" class="bottomline"><!--{php}-->echo ini_get('magic_quotes_runtime')?'<strong style="color:gray">On</strong>(您的PHP支持被停止,所有的PHP程序都无法正常工作)':'<strong style="color:green">Off</strong>(推荐)';<!--{/php}--></td>
      </tr>
	  <tr>
        <td height="28" class="bottomline">&nbsp;register_globals</td>
        <td height="28" class="bottomline"><!--{php}-->echo ini_get('register_globals')?'<strong style="color:gray">On</strong>(一个非常危险的安全威胁! 此安全漏洞不会通过miceCMS威胁您的安全,但可能会通过您的其他PHP程序威胁您的安全!)':'<strong style="color:green">Off</strong>(推荐)';<!--{/php}--></td>
      </tr>
	  <tr>
        <td height="28" class="bottomline">&nbsp;session.auto_start</td>
        <td height="28" class="bottomline"><!--{php}-->echo ini_get('session.auto_start')?'<strong style="color:gray">On</strong>(miceCMS无法开启 session, 它会一直处于开始状态)':'<strong style="color:green">Off</strong>(推荐)';<!--{/php}--></td>
      </tr>
	  <tr>
        <td height="28" class="bottomline">&nbsp;iconv</td>
        <td height="28" class="bottomline">
<!--{php}-->if(function_exists('iconv')){
    echo '<strong style="color:green">On</strong>(推荐,如果使用MSSQL数据库,必须支持此函数)';
}else{
    echo '<strong style="color:gray">Off</strong>(推荐)';
}<!--{/php}-->
		</td>
      </tr>
    </table></td>
  </tr>
      </table>
	  <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
	  <table width="850" border="0" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
  <tr>
    <td height="28" bgcolor="#F9F9F9">&nbsp;<span class="STYLE7">目录权限检测</span></td>
  </tr>
  <tr>
    <td height="28" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="28" class="bottomline">&nbsp;uploads/</td>
        <td width="65%" height="28"" class="bottomline"><!--{php}-->echo IsWritable(MICE_DIR.'uploads/')?"<strong style='color:green'>可写</strong>(正常)":"<strong style='color:red'>不可写</strong>(会导致文件上传失败)";<!--{/php}--></td>
      </tr>
	  <tr>
        <td height="28" class="bottomline">&nbsp;templates_c/</td>
        <td width="65%" height="28"" class="bottomline"><!--{php}-->echo IsWritable(MICE_DIR.'templates_c/')?"<strong style='color:green'>可写</strong>(正常)":"<strong style='color:red'>不可写</strong>(会导致网站访问异常)";<!--{/php}--></td>
      </tr>
	  <tr>
        <td height="28" class="bottomline">&nbsp;<!--{$smarty.const.MICE_PRIVATE}--></td>
        <td width="65%" height="28"" class="bottomline"><!--{php}-->echo IsWritable(MICE_DIR.MICE_PRIVATE)?"<strong style='color:green'>可写</strong>(正常)":"<strong style='color:red'>不可写</strong>(会导致无法修改配置文件等错误)";<!--{/php}--></td>
      </tr>
	  <tr>
        <td height="28" class="bottomline">&nbsp;list/</td>
        <td width="65%" height="28"" class="bottomline"><!--{php}-->echo IsWritable(MICE_DIR.'list/')?"<strong style='color:green'>可写</strong>":"<strong style='color:red'>不可写</strong>";<!--{/php}-->(用于生成静态HTML,如果网站不需要生成HTML可不设置权限)</td>
      </tr>
	  <tr>
        <td height="28" class="bottomline">&nbsp;article/</td>
        <td width="65%" height="28"" class="bottomline"><!--{php}-->echo IsWritable(MICE_DIR.'article/')?"<strong style='color:green'>可写</strong>":"<strong style='color:red'>不可写</strong>";<!--{/php}-->(用于生成静态HTML,如果网站不需要生成HTML可不设置权限)</td>
      </tr>
	  <tr>
        <td height="28" class="bottomline">&nbsp;channel/</td>
        <td width="65%" height="28"" class="bottomline"><!--{php}-->echo IsWritable(MICE_DIR.'channel/')?"<strong style='color:green'>可写</strong>":"<strong style='color:red'>不可写</strong>";<!--{/php}-->(用于生成静态HTML,如果网站不需要生成HTML可不设置权限)</td>
      </tr>
    </table></td>
  </tr>
      </table>
	  <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
	  <table width="850" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
      <tr >
        <td bgcolor="#F9F9F9" height="30" valign='middle'><input name="next" type="hidden" value="<!--{$next}-->">&nbsp;&nbsp;
          <!--{if $next==1}--><input name="button" type="button" accesskey="p" onClick="javascript:history.back(-1)" value="上一步[P]"/>
          &nbsp;&nbsp;
          <input name="submit" type="submit" accesskey="N" value="下一步[N]"/><!--{else}--><strong style='color:red'>系统不满足安装的最低要求,请检查红色的选项!</strong><!--{/if}-->
        </td>
      </tr></form>
    </table></td>
  </tr>
</table>
</body>
</html>
